package org.NooLab.itexx.stuctures;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;




public class UrlDescriptors implements Serializable{

	// we provide 2 views, a simple set, and a list of full descriptors
	
	Set<String> urlset = new HashSet<String>() ;
	ArrayList<UrlDescriptor> items = new ArrayList<UrlDescriptor>(); 
	
	int uniqueCount=-1;
	
	// ========================================================================
	public UrlDescriptors(){
		
	}
	// ========================================================================

	public int getUniquesCount(){
		uniqueCount = 0;
		
		// via CollectionUtils
		
		return uniqueCount;
	}
	
	// ----------------------------------------------------
	public void add( UrlDescriptor urld){
		items.add(urld);
	}
	
	public UrlDescriptor get(int index){
		return items.get(index);
	}

	public ArrayList<UrlDescriptor> getItems() {
		return items;
	}

	public void setItems(ArrayList<UrlDescriptor> items) {
		this.items = items;
	}

	public Set<String> getUrlset() {
		return urlset;
	}

	public void setUrlset(Set<String> urlset) {
		this.urlset = urlset;
	}
	
	
}
